package com.ddxz.csms.mapper.run;

import com.ddxz.csms.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * description
 *
 * @author 朱宗刚
 * @version 1.0.0
 * @date 2021/11/20
 */

@Mapper
@Repository
public interface DataMapper {
    Integer saveArea(@Param("entity")RunAreaEntity entity);

    Integer saveClientVisit(@Param("entity")RunClientVisitEntity entity);

    Integer saveCollectorEvent(@Param("entity")RunCollectorEventEntity entity);

    Integer saveCollectorFlow(@Param("entity")RunCollectorFlowEntity entity);

    Integer saveDomainAnalyze(@Param("entity")RunDomainAnalyzeEntity entity);

    Integer saveDomainAccess(@Param("entity")RunDomainAccessEntity entity);

    Integer saveIp(@Param("entity") RunIpEntity entity);

    Integer saveRequest(@Param("entity")RunRequestEntity entity);

    Integer saveResponse(@Param("entity")RunResponseEntity entity);

    Integer saveRoute(@Param("entity")RunRouteEntity entity);

    Integer saveRuleEvent(@Param("entity")RunRuleEventEntity entity);

    Integer saveSourcePort(@Param("entity")RunSourcePortEntity entity);

    Integer saveTargetPort(@Param("entity")RunTargetPortEntity entity);

    Integer deleteArea();

    Integer deleteClientVisit();

    Integer deleteCollectorEvent();

    Integer deleteCollectorFlow();

    Integer deleteDomainAnalyze();

    Integer deleteDomainAccess();

    Integer deleteIp();

    Integer deleteRequest();

    Integer deleteResponse();

    Integer deleteRoute();

    Integer deleteRuleEvent();

    Integer deleteSourcePort();

    Integer deleteTargetPort();
}
